package com.syc.dao;

import com.syc.entity.User;

import java.util.List;

/**
 * 提供查询接口解耦
 * @author Shen Yu Chen
 * @create 2020-04-23
 **/
public interface IUserMapper {
    
    /**
     * 查询所有用户
     */
    public List<User> findAll() throws Exception;


    /**
     * 根据条件进行用户查询
     */
    public User findByCondition(User user) throws Exception;

    public int insert(User user) throws Exception;

    public int update(User user) throws Exception;

    public int delete(User user) throws Exception;
}
